import { NEWLIST_GET } from '../actionTypes'
const initState = [] // 所有的新闻列表
export default function newsList (state = initState, action) {
  console.log(action)
  switch (action.type) {
    case NEWLIST_GET:
      return action.payload
    default:
      return state
  }
}
